package com.javasm.springboot2.entity;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author：xls
 * @Version：1.0
 * @Date：2021/11/6-13:14
 * @Since:jdk1.8
 * @Description:
 */
@ConfigurationProperties(prefix = "stu")
@Component
@Data
public class Student {
    private String userName;
    private Integer age;
}
